<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link href="/static/thinkct/css/basic.css?v=1" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/jquery.m.js"></script><script language="javascript" src="/static/thinkct/js/layui/layui.js"></script><script language="javascript" src="/static/thinkct/js/common.js?v=1"></script><script language="javascript" src="/static/thinkct/js/member.js?v=1"></script><link href="/static/thinkct/css/member.css?v=1" rel="stylesheet" type="text/css" /><link href="/static/thinkct/js/layui/css/layui.css" rel="stylesheet" type="text/css" /></head>
<body>
<form class="layui-form layui-font14"  name="" action="" method="post" >
<div class="payments">
<ul class='u1'>缴纳额度：</ul>
<ul class='u2'>
<li><input name="money"  type="radio" lay-filter="money" value="300" title='300元（必缴，基础保证金）'></li>
<li class='cur'><input name="money" type="radio" lay-filter="money" checked="checked" value="500" title='500元（推荐，300元基础保证金 + 200元追加保证金）'></li>
<li><input name="money" type="radio" value="cus" lay-filter="money" title='自定义额度（不能低于必缴额度：300元）'><span class="cusinput" style='display:none;'><div class="layui-input-inline">
<input type="text" name="cmoney"  style='width:60px;margin-bottom:-2px;height:24px;line-height:24px;padding:0 2px;' class="o_number layui-input" /></div> <div class="layui-inline"> <div class="layui-form-mid layui-word-aux ">元</div></div></span></li>

</ul>
<ul class='u3'><input type="submit" value="确定选择" lay-submit='' class="layui-btn layui-btn-danger"/></ul>
</div>
<div class="notes" style='margin-top:0;width:110%'>
	<li> <h3>注意事项及说明：</h3></li>
<li><b>1.</b>消保赔付为系统执行，为避免因个别赔付，致保证金不足300元而被【<span>自动关店</span>】，建议适当追加保证金；</li>
<li><b>2.</b>追加保证金，除避免自动关店外，也可提高【<span>保证金充足率</span>】（前台显示），让买家买的更放心；</li>
<li><b>3.</b>追加保证金在最后一次缴纳保证金3天后可自由转出至账户余额，用于消费或者提现；</li>
</div>
 </div>
 <input type="hidden" name="minmoney" value="300">
 <input type="hidden" name="bh" value="{:shop_bh()}">
 <input type="hidden" name="action" value="money">
 <input type="hidden" name="passkey" value="{:passkey()}">
</form>
<script>
var index = parent.layer.getFrameIndex(window.name);
parent.layer.title('保证金缴纳 - 额度（本次最低需缴纳：<font color=red>300 </font>元 ）',index);
 layui.use('form', function(){
 var form = layui.form();
form.on('submit', function(data) {
if($("input[name=money]:checked").val()>0 || ($("input[name=money]:checked").val()=='cus' && $("input[name=cmoney]").val()>0 && parseFloat($("input[name=cmoney]").val())>=parseFloat($("input[name=minmoney]").val()))){
progress(true);return true;
}else{
parent.layer.alert("额度选择有误，请重新选择！",{icon:0});return false;
}
});
form.on('radio', function(data){
  $(data.elem).closest('li').addClass("cur").siblings("li").removeClass("cur"); //得到radio原始DOM对象
  (data.value=='cus')?$('.cusinput').show():$('.cusinput').hide(); //得到radio原始DOM对象
});
parent.layer.iframeAuto(index);
});
</script>
</body>
</html>